package com.btkjgc.utils;

/**
 * Created by whiteworld on 14-3-14.
 */
public class Constant
{
	public static final int SUCCESS = 0;
	public static final String SUCCESS_S = "成功,各种命令的默认成功返回值";

	public static final int UNKNOW_FAIL = -1;
	public static final String UNKNOW_FAIL_S = "未知错误";

	public static final int COMMAND_FAIL = 1;
	public static final String COMMAND_FAIL_S = "命令错误";

	public static final int ALREADY_REGISTER = 2;
	public static final String ALREADY_REGISTER_S = "用户已经注册过了";

	public static final int USER_NOT_FOUND = 3;
	public static final String USER_NOT_FOUND_S = "用户不存在";

	public static final int WRONG_PASSWORD = 4;
	public static final String WRONG_PASSWORD_S = "密码错误";

	public static final int NICKNAME_EXISTS = 5;
	public static final String NICKNAME_EXISTS_S = "昵称已存在";

	public static final int NO_GET_CODE = 6;
	public static final String NO_GET_CODE_S = "该手机没有获取验证码";

	public static final int CODE_OUTDATE = 7;
	public static final String CODE_OUTDATE_S = "验证码过期";

	public static final int WRONG_CODE = 8;
	public static final String WRONG_CODE_S = "验证码错误";

	public static final int ALREADY_BIND_ID = 9;
	public static final String ALREADY_BIND_ID_S = "已经绑定过身份证号";

	public static final int ALREADY_ORDER = 10;
	public static final String ALREADY_ORDER_S = "该用户已经预约了车";

	public static final int NOT_ENOUGH_MONEY = 11;
	public static final String NOT_ENOUGH_MONEY_S = "用户余额不足";

	public static final int CAR_USED = 12;
	public static final String CAR_USED_S = "该车别人正在使用中";

	public static final int CAR_NOT_EXIST = 13;
	public static final String CAR_NOT_EXIST_S = "车不存在";

	public static final int CAR_NOT_AVAILABLE = 14;
	public static final String CAR_NOT_AVAILABLE_S = "车现在不可用";

	public static final int ORDERING = 15;
	public static final String ORDERING_S = "预约请求处理中";

	public static final int ORDER_FAIL = 16;
	public static final String ORDER_FAIL_S = "预约失败";

	public static final int CANCEL_ORDER_FAIL = 17;
	public static final String CANCEL_ORDER_FAIL_S = "取消预约失败";

	public static final int CANCELING_ORDER = 18;
	public static final String CANCELING_ORDER_S = "取消预约请求处理中";

	public static final int DRIVING = 19;
	public static final String DRIVING_S = "用户在开车中";

	public static final int DRIVE_FAIL = 20;
	public static final String DRIVE_FAIL_S = "开车失败";

	public static final int DRIVING_REQUESTING = 21;
	public static final String DRIVING_REQUESTING_S = "开车请求处理中";

	public static final int NOT_ORDERED = 22;
	public static final String NOT_ORDERED_S = "用户没有预约过车";

	public static final int NOT_DRIVED = 23;
	public static final String NOT_DRIVED_S = "用户没有开过车";

	public static final int RETURN_REQUESTING = 24;
	public static final String RETURN_REQUESTING_S = "还车请求中";

	public static final int RETURN_FAIL = 25;
	public static final String RETURN_FAIL_S = "还车失败";

	public static final int NOT_SET_ID_NUMBER = 26;
	public static final String NOT_SET_ID_NUMBER_S = "没有绑定身份证号";

	public static final int FEEDBACK_NULL = 27;
	public static final String FEEDBACK_NULL_S = "反馈内容为空";

	public static final int RETURN_WARNNING_DRIVING = 28;
	public static final String RETURN_WARNNING_DRIVING_S = "正在开车中，请停车后点击还车";

	public static final int EXCEPTION_IN_ORDER = 29;
	public static final String EXCEPTION_IN_ORDER_S = "车辆异常，正在为您取消预约";

	public static final int EXCEPTION_CANCEL_ORDER_SUCCESS = 30;
	public static final String EXCEPTION_CANCEL_ORDER_SUCCESS_S = "车辆异常，本次用车结束";

	public static final int EXCEPTION_RETURN_CAR_SUCCESS = 31;
	public static final String EXCEPTION_RETURN_CAR_SUCCESS_S = "车辆异常，本车用车结束";

	public static final int EXCEPTION_USER_LOCK = 32;
	public static final String EXCEPTION_USER_LOCK_S = "用户异常，被锁定，请联系工作人员";
	// 命令列表
	public static final int GET_USER_INFO_COMMAND = 0;
	public static final int REQUEST_CODE_COMMAND = 1;
	public static final int VERIFICATION_COMMAND = 2;
	public static final int SETTING_COMMAND = 3;
	public static final int LOGIN_COMMAND = 4;
	public static final int LOGOUT_COMMAND = 5;
	public static final int UPDATE_NICKNAME_COMMAND = 6;
	public static final int SET_ID_COMMAND = 7;
	public static final int GET_NICKNAME_COMMAND = 8;
	public static final int GET_LEVEL_COMMAND = 9;
	public static final int GET_POINT_COMMAND = 10;
	public static final int GET_VERSION_COMMAND = 11;
	public static final int AROUND_CAR_COMMAND = 12;
	public static final int FIND_CAR_COMMAND = 13;
	public static final int ORDER_CAR_COMMAND = 14;
	public static final int DRIVE_CAR_COMMAND = 15;
	public static final int RETURN_CAR_COMMAND = 16;
	public static final int CANCEL_ORDER_COMMAND = 17;
	public static final int GET_USER_CAR_COMMAND = 18;
	public static final int GET_DETAIL_CAR_COMMAND = 19;
	public static final int GET_GPS_FENCING_COMMAND = 20;
	public static final int GET_FEEDBACK_COMMAND = 21;
	public static final int GET_ORDERS_COMMAND = 22;
	public static final int GET_ORDER_INFO_COMMAND = 23;
	public static final int GET_NOTIFY_INFO_COMMAND = 24;
	public static final int ALL_CAR_COMMAND = 25;
	public static final int GET_USER_EXTRA_COMMAND = 26;
	public static final int GET_RECHARGE_COMMAND = 27;
	public static final int CAR_FEEKBACK_COMMAND = 28;
	public static final int CAR_FEEKBACK_OPTIONS_COMMAND = 29;

	// 维护APP命令列表
	public static final int MAINTAINER_LOGIN_COMMAND = 101;
	public static final int MAINTAINER_LOGOUT_COMMAND = 102;
	public static final int MAINTAINER_ALL_CARS_COMMAND = 103;
	public static final int MAINTAINER_MAINTENANCE_COMMAND = 104;
	public static final int MAINTAINER_END_MAINTENANCE_COMMAND = 105;
	public static final int MAINTAINER_RETURN_BY_MAINTAINER_COMMAND = 106;
	public static final int MAINTAINER_MAINTENANCE_RESERVE_COMMAND = 107;
	public static final int MAINTAINER_END_MAINTENANCE_RESERVE_COMMAND = 108;
	public static final int MAINTAINER_FEEKBACK_OPTIONS_COMMAND = 110;
	public static final int MAINTAINER_FEEKBACK_COMMAND = 111;

	// 维护APP返回结果
	public static final int MAINTAINER_NOT_EXISTS = 101;
	public static final String MAINTAINER_NOT_EXISTS_STR = "维护人员不存在";
	public static final int MAINTAINER_GET_MAINTENANCE_COMMAND = 109;

	public static final int MAINTAINER_PASSWORD_ERROR = 102;
	public static final String MAINTAINER_PASSWORD_ERROR_STR = "维护人员或者密码错误";

	// public static final String LOGIN_SUCCESS_STR = "登录成功";
	public static final String ALL_CARS_SUCCESS_STR = "获取车辆成功";

	public static final int COMMAND_PROCESSING = 103;
	public static final String COMMAND_PROCESSING_STR = "命令处理中";

	public static final int COMMAND_FAILED = 104;
	public static final String COMMAND_FAILED_STR = "命令处理失败";

	public static final int COMMAND_BUSY = 105;
	public static final String COMMAND_BUSY_STR = "车辆被占用";

	public static final int COMMAND_NO_MAINTAINING = 106;
	public static final String COMMAND_NO_MAINTAINING_STR = "没有维护该辆车";

	public static final int COMMAND_NO_MAINTAINING_RESERVE = 107;
	public static final String COMMAND_NO_MAINTAINING_RESERVE_STR = "没有预定维护该辆车";

	public static final int COMMAND_SUCCESS = 0;
	public static final String COMMAND_SUCCESS_STR = "成功";

	// 验证码
	public static final String SN = "DXX-ANG-010-00082";
	public static final String PWD = "2-72c3-[";

	// 是否为僵尸httprequest的时间
	public static final long ZOMBIE_TIME = 30;// 单位：秒

	// 体验车辆的car_id范围
	public static final int MIN_EXPERIENCED_CAR_ID = 10000;
	public static final int MAX_EXPERIENCED_CAR_ID = 12050;

	public static final String DEFAULTPW = "123456";

	public static final int ADMIN_ENTITY = 1;
	public static final int ADMIN_USERID = 1;

	public static final String DOWN_LOAD = "\\download\\";
	public static final String APP_SERVER_QRCODE_LINK = "http://m.roboy.com.cn:8080/appserver/code?v=机构码&c=车辆编号";
	public static final String REF_CODE = "机构码";
	public static final String CAR_ID = "车辆编号";
	public static final Integer PAGEROWS_CAR_WORK_STATUS_INFO = 50;// car_work_status_info页面每页显示的行数

	public static final String REPORT_TEMPLATE = "FormsTool";

	/**
	 * 邮箱找回密码相关参数，wu-2015-09-07
	 * */
	public static String ABSOLUTE_URL = null;
	// public static final String PW_RETRIEVE_URL =
	// "http://m.roboy.com.cn:8080/login/pwretrieve";
	public static final String PW_RETRIEVE_SEND_SMTP = "smtp.163.com"; // 密码找回邮件服务器
	public static final String PW_RETRIEVE_SEND_EMIAL = "visionwun@163.com"; // 密码找回邮件发送人
	public static final String PW_RETRIEVE_PW = "wc4215**";

	public static final int SEND_SUCCESS = 0;
	public static final int SEND_ADMIN_NOT_EXIST = 1;
	public static final int SEND_EMAIL_NOT_LEGAL = 2;
	public static final int SEND_ERROR = 3;

}